<template>
  <div class="app-container">
    <!--工具栏-->
    <div class="head-container">
      <eHeader :dict="dict" :permission="permission" />
      <crudOperation :permission="permission" />
    </div>
    <!--表格渲染-->
    <el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;"
      @selection-change="crud.selectionChangeHandler">
      <el-table-column type="selection" width="55" />
      <el-table-column prop="deviceCode" label="触发设备编号">
      </el-table-column>
      <el-table-column prop="materialAntonCount" label="物料安东" />
      <el-table-column prop="qualityAntonCount" label="质量安东" />
      <el-table-column prop="deviceAntonCount" label="设备安东" />
      <el-table-column prop="otherAntonCount" label="其他安东" />
      <el-table-column prop="totalCount" label="次数合计" />
      <el-table-column prop="consumeTimeTotal" label="耗时合计(分钟)" />
      <!--   编辑与删除   -->
      <!-- <el-table-column v-if="checkPer(['admin', 'antonConfig:edit', 'antonConfig:del'])" label="操作" width="130px"
        align="center" fixed="right">
        <template slot-scope="scope">
          <udOperation :data="scope.row" :permission="permission" />
        </template>
      </el-table-column> -->
    </el-table>
    <!--分页组件-->
    <pagination />
  </div>
</template>

<script>
import crudAntonStatistics from '@/api/anton/antonStatistics'
import eHeader from './module/header'
import CRUD, { presenter } from '@crud/crud'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'


export default {
  name: 'AntonStatistics',
  components: { eHeader, crudOperation, pagination, crudAntonStatistics },
  cruds () {
    return CRUD({
      title: '安东记录',
      url: 'api/antonStatistics',
      sort: ['id'],
      crudMethod: { ...crudAntonStatistics },
      optShow: {
        add: false,
        edit: false,
        del: false,
        download: false,
        reset: false,
        import: false,
      },

    })
  },
  mixins: [presenter()]
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
::v-deep .el-input-number .el-input__inner {
  text-align: left;
}
</style>
